package com.intelligent.system.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.Set;

@Data
@TableName("sys_user")
public class User {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    
    private Long deptId;
    private String loginName;
    private String userType;
    private String email;
    private String phonenumber;
    private String avatar;
    private String password;
    private String salt;
    private Byte status;
    private String remark;
    
    @TableField(exist = false)
    private Set<Long> roleIds;
    
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic(value = "0", delval = "2")
    private Byte isDelete;
} 